Repository navigation
Add Electroscope: live microscope viewer with an MCP server for Claude - #1
Merged
Merged
Conversation
The app owns the camera and shows the live view, so a human and Claude can look at the same microscope without competing for a single camera stream. Claude gets still frames on demand over a local MCP server. - Electron app with a Windows 11 look (Mica, native title bar overlay); the same code builds for macOS - Live view with zoom/pan, grid and crosshair, freeze, rotate/mirror and a live sharpness meter; hardware controls shown when the camera supports them - MCP over Streamable HTTP on 127.0.0.1: get_status, list_cameras, capture_snapshot (full-resolution regions, follow the human's zoomed view), capture_sequence, select_camera, set_camera_controls, set_orientation, get_shared_frames - Human stays in control: access switch, a strip of every frame Claude took, Share with Claude with a note, Host/Origin checks against DNS rebinding - Controls the camera accepts but does not apply are detected and reported - Unit tests for the MCP layer and an end-to-end script that drives the real app over MCP with a real or synthetic camera; Windows CI runs the latter Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
First version of Electroscope: a native-looking desktop app that shows a microscope camera live and lets Claude take still frames over MCP, so you and Claude can look at the same board without fighting over one camera stream.
package.json, not run on a Mac).src/main/mcp): Streamable HTTP on127.0.0.1:47821. Tools:get_status,list_cameras,capture_snapshot,capture_sequence,select_camera,set_camera_controls,set_orientation,get_shared_frames. Snapshots can crop a full-resolutionregionor follow the area you have zoomed to, and return focus, brightness and exposure metrics with plain-language hints.HostorOrigin, sandboxed renderer with a strict CSP.responsive: false. The microscope used for testing does this for brightness, contrast and saturation.build/icon.svg;README.md,docs/mcp.md; Windows CI runs typecheck, unit tests and the end-to-end script with a synthetic camera.Testing
Ran:
npm run typecheck,npm test(22 unit tests: tools, transport safety, settings, bridge).node scripts/e2e.mjsagainst a real UVC microscope camera (GENERAL - UVC, 1280x720): 16/16 checks over MCP using the official SDK client, from both the source tree and the packagedElectroscope.exe.node scripts/e2e.mjs --fake(synthetic camera): 16/16.npm run dist(unpacked Windows build);npm audit --omit=dev: 0 vulnerabilities.Not run:
dist:installer) and code signing; builds are unsigned.🤖 Generated with Claude Code